import com.ynny.bean.Dao.CourseManage;
import com.ynny.bean.Dao.UserManage;
import com.ynny.bean.yyy.Course;
import com.ynny.bean.yyy.Score;
import com.ynny.bean.yyy.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class StudentSystemDB {
    public static void main(String[] args) {
        ApplicationContext context;
        context = new ClassPathXmlApplicationContext("student_systemDB.xml");
        User user = (User)context.getBean("user");
        UserManage userManage = (UserManage)context.getBean("userManage");
        Score score = (Score)context.getBean("score");
        ScoreManage scoreManage = (ScoreManage)context.getBean("scoreManage");
        CourseManage courseManage = (CourseManage)context.getBean("courseManage");

        user.setNumber("201801");
        user.setPassword("123456");
        userManage.login();
        
    }
}
